package com.ghovos.usermangerpgdemo.entity;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModel;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.util.List;


/**
 * 菜单
 * @author liuli
 */
@ApiModel(description = "菜单实体")
@EqualsAndHashCode(callSuper = true)
@TableName("tb_menu")
@Data
public class MenuEntity extends BaseEntity{
    @TableId(type = IdType.AUTO)
    private Long id;
    private String name;
    @TableLogic
    private Integer isDeleted;

    @TableField(exist = false)
    private List<RoleEntity> roleLists;
}
